import service from "../utils/request.js";

export default {

    //用户列表
    findAll() {
        return service({
            url: `/api/mockGetList`,
            method: "get",
        });
    },

    //用户列表
    findOrgData() {
        return service({
            url: `/api/mockTreeList`,
            method: "get",
        });
    },

    //根据orgId获取对应用户
    findUserByOrgId(){
        return service({
            url: `/api/mockOrgUserList`,
            method: "get",
        });
    },

    //添加用户
    addUser(user) {
        return service({
            url: `/api/add`,
            method: "post",
            data: user,
        });
    },


    getFlowTemplate(){
        return service({
            url: `/api/getFlowTemplate`,
            method: "get",
        });
    }

}